package com.b2b.service.impl;

import com.b2b.mapper.InquiryMaterialMapper;
import com.b2b.model.entity.InquiryMaterial;
import com.b2b.service.InquiryMaterialService;
import com.b2b.service.InquiryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class InquiryMaterialServiceImpl extends BaseServiceImpl<InquiryMaterial> implements InquiryMaterialService {
    @Autowired
    InquiryMaterialMapper inquiryMaterialMapper;
    public List<InquiryMaterial> selectByInquiryId(Integer inquiryId) {
        return inquiryMaterialMapper.selectByInquiryId(inquiryId);
    }
    public List<InquiryMaterial> selectByRequirementId(Integer requirementId) {
        return inquiryMaterialMapper.selectByRequirementId(requirementId);
    }
}
